import myAxios from '@/utils/requset'
// 获取分类列表
export const catGetListService = (currentPage, pageSize) =>
  myAxios.get('/category', {
    params: {
      currentPage: currentPage || 1,
      pageSize: pageSize || 5
    }
  })

// 删除分类
export const catDelCategoryService = (id) => myAxios.delete(`/category/${id}`)

// 添加分类
export const catAddCategoryService = (data) => myAxios.post('/category', data)

// 更新分类
export const catUpdateCategoryService = (data) => myAxios.put(`/category`, data)
